projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6920fc3
)
tests: Fix testgiconpixbuf test
author
Alexander Mikhaylenko
<alexm@gnome.org>
Sun, 10 May 2020 23:55:22 +0000
(
04:55
+0500)
committer
Alexander Mikhaylenko
<alexm@gnome.org>
Sun, 10 May 2020 23:55:22 +0000
(
04:55
+0500)
Don't use GtkContainer API on GtkWindow.
tests/testgiconpixbuf.c
patch
|
blob
|
history
diff --git
a/tests/testgiconpixbuf.c
b/tests/testgiconpixbuf.c
index 0a52da4b4d8e71289abd8669294432693fb72049..3f698098e26aa592f76f455c6963c7277d0f57ef 100644
(file)
--- a/
tests/testgiconpixbuf.c
+++ b/
tests/testgiconpixbuf.c
@@
-50,7
+50,7
@@
main (int argc,
pixbuf = gdk_pixbuf_new_from_file ("apple-red.png", NULL);
toplevel = gtk_window_new ();
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
- gtk_
container_add (GTK_CONTAINER
(toplevel), hbox);
+ gtk_
window_set_child (GTK_WINDOW
(toplevel), hbox);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_container_add (GTK_CONTAINER (hbox), vbox);